package com.photo.action;

import com.opensymphony.xwork.Action;
import com.photo.test.TestBean;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2008-8-5
 * Time: 13:18:14
 * To change this template use File | Settings | File Templates.
 */
public class HelloWorldAction implements Action {
    String greeting;
    TestBean testBean;

    public void setTestBean(TestBean testBean) {
        this.testBean = testBean;
    }

    public String getGreeting() {
        return greeting;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }

    public String execute() throws Exception {
        this.setGreeting(testBean.greeting);
        return SUCCESS;
    }
}
